package com.ruoyi.framework.shiro.token;

import org.apache.shiro.authc.AuthenticationToken;

public class JwtToken implements AuthenticationToken{
	private static final long serialVersionUID = -2442203732980013072L;

	// 密钥
	private String token;

	public JwtToken(String token){
		this.token = token;
	}

	// 类似是用户名
	@Override
	public Object getPrincipal(){
		return token;
	}

	// 类似密码
	@Override
	public Object getCredentials(){
		return token;
	}
}
